package com.dykj.fireFighting.api.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @Description 数据字典
 * @Author hxb
 * @Date 2021-06-19 15:12:17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "数据字典")
@TableName("t_sys_directory")
public class SysDirectory extends Model<SysDirectory> {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键ID")
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(type = IdType.AUTO)
	private Integer id;
	private String code;
	private String value;
	/**
	 * 数据字典类型key_code
	 */
	@ApiModelProperty(value = "数据字典类型key_code")
	@TableField("dty_key_code")
	private String dtyKeyCode;
	@TableField("parent_code")
	private String parentCode;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
	private String description;
	/**
	 * 级别
	 */
	@ApiModelProperty(value = "级别")
	private Integer level;
	/**
	 * 状态： 0->显示  ,  1->隐藏
	 */
	@ApiModelProperty(value = "状态： 0->显示  ,  1->隐藏")
	private Integer status;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sort;
	/**
	 * 未删0已删1
	 */
	@ApiModelProperty(value = "未删0已删1")
	@TableField("is_del")
	private Integer isDel;
	@TableField("create_user")
	private String createUser;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@TableField("update_time")
	private Date updateTime;
	@TableField("update_user")
	private String updateUser;

}
